package com.patterns.decorator.commonDecorator;

/**
 * Created by Xiao Yiyun on 2017/5/19.
 * 场景类
 */
public class Client {
    public static void main(String[] args) {
        Component component = new ConcreteComponent();
        //进行修饰
        component = new ConcreteDecorator(component);
        //修饰后运行
        component.operate();

    }
}
